#include <iostream>
#include <cstring>
#include <ctime>
#include <cstdlib>
#include <string>

#define MAXSTRLEN 30

using namespace std;

string strlist[11000];

double myrand(void) {return rand()*rand()/1000000.0;}

string randStr(void) {
	int len = rand()%MAXSTRLEN+1;
	char buf[MAXSTRLEN+1];
	memset(buf, 0, MAXSTRLEN+1);
	for (int i=0; i<len; ++i)
		buf[i] = rand()%26+'a';
	return string(buf);
}

int main(void)
{
	srand(time(0));
	cout << 1 << endl;
	for (int i=0; i<10000; ++i)
		strlist[i] = randStr();

	for (int i=0; i<1000000; ++i)
		cout << strlist[rand()%10000] << endl;
	return 0;
}